-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[trello.com/c/sI4VXuJa] Added swipe gestures (left & down) to Snackbar #595
base: develop
Are you sure you want to change the base?
Conversation
PopupKit/Sources/PopupKit/Implementation/Models/NotificationModel.swift
Outdated
Show resolved
Hide resolved
hasher.combine(title) | ||
hasher.combine(description) | ||
hasher.combine(tapHandler) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -10,8 +10,13 @@ import CommonKit | |||
|
|||
struct NotificationView: View { | |||
@State private var dragTranslation: CGFloat = .zero | |||
@State private var horizontalDragTranslation: CGFloat = .zero | |||
@State private var minTranslationForDismiss: CGFloat = .infinity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y
dismissAction() | ||
} | ||
} else if $0.velocity.height > -100 || -$0.translation.height < minTranslationForDismiss { | ||
horizontalDragTranslation = .zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove? Animation?
No description provided.